package com.isunland.managesystem.ui;

import android.content.Intent;
import android.support.v4.app.Fragment;
import com.isunland.managesystem.base.BaseVolleyActivity;
import com.isunland.managesystem.entity.ReceviceOrderLog;

/**
 * 对象功能:评价列表
 * 开发公司: 北京信普达系统工程有限公司
 * 开发人员: wangyanan
 * 创建时间: 2017/3/19 22:33
 */
public class EvaluateLogListActivity extends SingleFragmentActivity {
  public static void newInstance(ReceviceOrderLogListFragment fragment, BaseVolleyActivity context,
      ReceviceOrderLog item, int requestCode) {
    if (fragment == null || context == null) return;
    Intent i = new Intent(context, EvaluateLogListActivity.class);
    i.putExtra(EvaluateLogListFragment.EXTRA_ITEM, item);
    fragment.startActivityForResult(i, requestCode);
  }

  @Override protected Fragment createFragment() {
    ReceviceOrderLog mItem =
        (ReceviceOrderLog) getIntent().getSerializableExtra(EvaluateLogListFragment.EXTRA_ITEM);
    return EvaluateLogListFragment.newInstance(mItem);
  }
}
